<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:p="http://primefaces.org/ui">
 
       <p:ajaxStatus onstart="PF('statusDialog').show();" onsuccess="PF('statusDialog').hide();"/> 
       <p:dialog modal="true" widgetVar="statusDialog" header="Por favor aguarde..." draggable="false" closable="false" resizable="false"> 
       		<p:graphicImage value="/css/img/ajax-loader.gif" /> 
       </p:dialog>

</ui:composition>